package com.woniuxy.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.time.LocalDateTime;
import java.util.Date;
/**
* 
* @TableName chat_sessions
*/
@Data
@TableName("ai_chat_message")
public class AIChatMessage {

    /**
    * id
    */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
    * 会话id，记录会话唯一标识
    */
    @TableField(value = "session_id")
    private String sessionId;
    @TableField(value = "message_id")
    private String messageId;
    /**
    * 用户id
    */
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(value = "role")
    private String role;
    /**
    * 创建时间
    */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;
    /**
    * 最后活跃时间
    */
    @TableField(value = "last_active")
    private LocalDateTime lastActive;
    /**
    * 状态（active/closed）
    */
    @TableField(value = "content")
    private String content;

}
